package com.api.shopapi.service.impl;

import com.api.shopapi.entity.BusinessBank;
import com.api.shopapi.mapper.BusinessBankMapper;
import com.api.shopapi.service.BusinessBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("BusinessBankServiceImplOne")
public class BusinessBankServiceImpl implements BusinessBankService {

    @Autowired
    private BusinessBankMapper businessBankMapper;

    @Override
    public int insert(BusinessBank businessBank) {
        return businessBankMapper.insert(businessBank);
    }

    @Override
    public int update(BusinessBank businessBank) {
        return businessBankMapper.update(businessBank);
    }

    @Override
    public BusinessBank getByBusinessBankCode(String businessBankCode) {
        return businessBankMapper.getByBusinessBankCode(businessBankCode);
    }

    @Override
    public BusinessBank getByBusinessCode(String businessCode) {
        return businessBankMapper.getByBusinessCode(businessCode);
    }
}
